package m.meiweitech.com.mwsp.login

import androidx.fragment.app.viewModels
import dagger.hilt.android.AndroidEntryPoint
import m.meiweitech.com.demo.R
import m.meiweitech.com.demo.databinding.FragmentLoginBinding
import www.wen.com.common.lib.base.fragment.BaseReceiveSMSFragment
import www.wen.com.common.lib.base.module.BaseViewModel
import www.wen.com.common.lib.extension.*
import www.wen.com.common.lib.util.WxUtil


/**
 * @author WEN
 * @Description:主页面
 * @date 2020//25 17:48
 */
@AndroidEntryPoint
class LoginFragment : BaseReceiveSMSFragment<FragmentLoginBinding>() {

    private val mApiViewModel: LoginViewModel by viewModels()

    override val viewModel: BaseViewModel
        get() = mApiViewModel

    private val mIwxapi by lazy { WxUtil.getIWXAPI(requireActivity()) }

    override fun getLayoutId(): Int = R.layout.fragment_login

    override fun lazyInitView() {
        super.lazyInitView()
    }

    /**
     * 发送验证码
     */
    private fun sendCaptcha() {

    }

    /**
     * 注册
     */
    private fun tvRegistered() {
        toast("暂未实现")
    }

    /**
     * 重置密码
     */
    private fun resetPassword() {
        toast("暂未实现")
    }

    override fun getRecordTimeKey(): String = "REGISTE_REMAINDER_TIME"

    override fun getSystemRecordTimeKey(): String = "REGISTE_SYSTEM_REMAINDER_TIME"

}



